3.2.19 \(\int \frac {(1-x^2)^2}{(-1+x^2)^2} \, dx\) [119]

Optimal. Leaf size=1 \[ x \]

[Out]

x

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 1, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {21, 8} \begin {gather*} x \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(1 - x^2)^2/(-1 + x^2)^2,x]

[Out]

x

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 21

Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m +
 n), x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c +
 d*x, a + b*x])

Rubi steps

\begin {align*} \int \frac {\left (1-x^2\right )^2}{\left (-1+x^2\right )^2} \, dx &=\int 1 \, dx\\ &=x\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(1 - x^2)^2/(-1 + x^2)^2,x]

[Out]

x

________________________________________________________________________________________

Maple [A]
time = 0.10, size = 2, normalized size = 2.00

method result size
default \(x\) \(2\)
risch \(x\) \(2\)
norman \(\frac {x^{3}-x}{x^{2}-1}\) \(16\)
meijerg \(-\frac {i \left (\frac {i x \left (-10 x^{2}+15\right )}{-5 x^{2}+5}-3 i \arctanh \left (x \right )\right )}{2}-i \left (-\frac {i x}{-x^{2}+1}+i \arctanh \left (x \right )\right )-\frac {i \left (\frac {2 i x}{-2 x^{2}+2}+i \arctanh \left (x \right )\right )}{2}\) \(75\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-x^2+1)^2/(x^2-1)^2,x,method=_RETURNVERBOSE)

[Out]

x

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+1)^2/(x^2-1)^2,x, algorithm="maxima")

[Out]

x

________________________________________________________________________________________

Fricas [A]
time = 0.84, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+1)^2/(x^2-1)^2,x, algorithm="fricas")

[Out]

x

________________________________________________________________________________________

Sympy [A]
time = 0.01, size = 0, normalized size = 0.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x**2+1)**2/(x**2-1)**2,x)

[Out]

x

________________________________________________________________________________________

Giac [A]
time = 1.32, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+1)^2/(x^2-1)^2,x, algorithm="giac")

[Out]

x

________________________________________________________________________________________

Mupad [B]
time = 0.00, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1,x)

[Out]

x

________________________________________________________________________________________